/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package BUS;

import DAO.MonHocDAO;
import POJO.MonHocPOJO;
import java.util.ArrayList;

/** @author
 *  ITEC.HCMUS.EDU.VN
 *  Ngô Huy Đạt
 *  0869005
 *  nhdat.itec@gmail.com
 */
public class MonHocBUS {
    
    public static  ArrayList<MonHocPOJO> selectAll(){
        ArrayList<MonHocPOJO> list = MonHocDAO.selectAll();
        return list;
    }
    
    public static boolean insert(String MaMonHoc,String TenMonHoc, String HeSo){
        boolean kq = MonHocDAO.insert(MaMonHoc, TenMonHoc, HeSo);
        return kq;
    }

    public static boolean  delete(String MaMonHoc) {
        boolean kq = MonHocDAO.delete(MaMonHoc);
        return kq;
    }

    public static boolean  update(String MaMonHoc,String TenMonHoc, String HeSo) {
        boolean kq = MonHocDAO.update(MaMonHoc, TenMonHoc, HeSo);
        return kq;
    }

    
    public static String laymamhtheotenmh(String tenmh){
       String kq = MonHocDAO.layMaMonHocTheoTenPMonHoc(tenmh);
        return kq;
    }

    //END
}
